package demo4;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 */

public class B {

    private int a = 10;
    static int b =20;
    public void fun1(){
        a = 20;
        System.out.println(a);

    }
    public static void fun2(){
        System.out.println(b);
    }

    static class A{
        public void func(){
           /* a = 100;//error*/
            b = 200;
           /* fun1();//error*/
            fun2();

        }

    }
}
